<?php 
	echo $this->Session->flash(); 
	echo $this->Session->flash('good');
	echo $this->Session->flash('bad');
?>
<table class="form-table">
	<tr>
		<td class='l-style'><?php echo __('Name') ?> <span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('name', array('label' => false, 'class' => 'title-slug required')); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('Description') ?><span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('description', array('label' => false, 'class' => 'required')); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('Order') ?><span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('order', array('label' => false, 'default' => 0, 'maxlength' => 5 ,'class' => 'number-mipt required digits')); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('Type') ?><span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('type', array('label' => false, 'type' => 'select')); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('Parent') ?><span class='star-rq'> </span></td>
		<td class="r-style width_min"><?php echo $this->Form->input('parent_id', array('label' => false, 'empty' => 'Select Parent', 'escape' => false)); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('Status') ?><span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('status', array('label' => false, 'type' => 'select')); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('SEO title') ?><span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('slug', array('label' => false, 'class' => 'required slug-string')); ?></td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('SEO Keywords') ?><span class='star-rq'> * </span></td>
		<td class="r-style width_middle"><?php echo $this->Form->input('meta_keyword', array('label' => false, 'class' => 'required')); ?></td>
	</tr>
	<tr>
		<td class='l-style'>
			<?php echo __('SEO Description') ?><span class='star-rq'> * </span> </br>
			<span class="span-note"><?php echo __('Suggest 160 characters') ?></span>
		</td>
		<td class="r-style width_middle">
			<?php echo $this->Form->input('meta_desc', array('label' => false, 'class' => 'required', 'onKeyUp' => "count_character(this);", 'cols' => 30, 'rows' => 3)); ?>
			<p> <input type="text" id="count_chars" style="width: 40px !important; height: 20px; text-align:center;" disabled value="0" class="square-ipt" /> <?php echo __('words') ?></p>
		</td>
	</tr>
	<tr>
		<td class='l-style'><?php echo __('Show in menu') ?></td>
		<td class="r-style width_middle">
			<?php echo $this->Form->radio("auto_show", array(1 => __('Auto'), 2 => __('Manual')), array('legend' => false, 'default' => 1)); ?>
		</td>
	</tr>
	<tr>
		<td class='l-style no-border no-background'>
			(<span class='red-star'>*</span>) <?php echo __('Required') ?>
		</td>
		<td class='r-style actions no-border no-background'><?php echo $this->Form->end(__('Submit')); ?></td>
	</tr>
</table>

<script type="text/javascript">
	jQuery(document).ready(function(){
		jQuery("#CategoryAddForm").validate();
	});
</script>
